IAxis.Power 方法
啟用或停用軸的運作。
命名空間:IntervalZero.KINGSTAR.Base.Class組合: IntervalZero.KINGSTAR.Base.Class (於 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0
語法
IKsCommand Power(
bool enable,
bool enablePositive,
bool enableNegative
)
Function Power(
enable As Boolean,
enablePositive As Boolean,
enableNegative As Boolean
) As IKsCommand
參數
enable
型別:bool
true:啟用軸;false:停用軸。
enablePositive
型別:bool
true:使軸朝正方向移動。
enableNegative
型別:bool
true:使軸朝負方向移動。
回傳值
型別:IKsCommand
回傳運作的狀態。
備註
此函式可用來啟動或停止伺服馬達並防止軸超程。
參見